package com.lyz.dz.des.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 帖子回复表
 * </p>
 *
 * @author <a href="https://fengwenyi.com">Erwin Feng</a>
 * @since 2021-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("forum_reply")
public class ForumReplyEntity extends Model<ForumReplyEntity> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "reply_id", type = IdType.AUTO)
    private Integer replyId;

    /**
     * 联关帖子表
     */
    @TableField("forum_id")
    private Integer forumId;

    /**
     * 联关用户表
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * 复回内容
     */
    @TableField("reply_content")
    private String replyContent;

    /**
     * 复回图片
     */
    @TableField("reply_image")
    private String replyImage;

    /**
     * 复回时间
     */
    @TableField("reply_time")
    private LocalDateTime replyTime;

    /**
     * 回复状态0未查看1已查看
     */
    @TableField("status")
    private Integer status;


    @Override
    protected Serializable pkVal() {
        return this.replyId;
    }

}
